//
//  BKLeftTableViewCell.m
//  FastBee
//
//  Created by mac on 16/9/11.
//  Copyright © 2016年 xbk. All rights reserved.
//

#import "BKLeftTableViewCell.h"
#import "masonry.h"

@interface BKLeftTableViewCell()

@property (nonatomic,weak) UILabel *nameLabel;

@end

@implementation BKLeftTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
    }
    return self;
}

- (void)setModel:(BKLeftTableViewModel *)model{

    _model = model;
    self.nameLabel.text = model.name;
}


- (void)setupUI{

//    UIView *yellowView = [[UIView alloc]init];
//    [self.contentView addSubview:yellowView];
//    yellowView.backgroundColor = [UIColor yellowColor];
//    
//    [yellowView mas_makeConstraints:^(MASConstraintMaker *make) {
//        
//        make.left.equalTo(self.contentView);
//        make.width.equalTo(@8);
//        make.top.equalTo(self.contentView.mas_top).offset(5);
//        make.bottom.equalTo(self.contentView.mas_bottom).offset(-5);
//        
//    }];
    
    
    UILabel *nameLabel = [[UILabel alloc]init];
    [self.contentView addSubview:nameLabel];
    nameLabel.text = @"hhhhhhh";
    
    [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.contentView).offset(20);
        make.top.equalTo(self.contentView.mas_top).offset(10);
    }];
    
    _nameLabel = nameLabel;
    
}

@end
